package com.itheima.dao;

import java.util.Scanner;

public class demo3 {
    public static void main(String[] args) {
        while (true) {
            Scanner sc= new Scanner(System.in);
            System.out.println("请输入您的成绩");
            int score = sc.nextInt();
            if (score>=0&&score<=100){
                if (score>=95&&score<=100){
                    System.out.println("自行车一辆");
                    break;
                }else if (score>=90&&score<=94){
                    System.out.println("游乐场一次");
                    break;
                }else if(score>=80&&score<=89){
                    System.out.println("变形金刚一个");
                    break;
                }else {
                    System.out.println("胖揍一顿");
                    break;
                }
            }else {
                System.out.println("非法成绩");
            }
        }
    }
}
